<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE html>
<html xmlns:c="http://java.sun.com/jsp/jstl/core">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>IntelliFridge_Startseite</title>
<link href="../CSS/main.css" rel="stylesheet" type="text/css">
<link href="../CSS/menu.css" rel="stylesheet" type="text/css">

<script type="text/javascript" src="../JS/jquery.js"></script>
<script type="text/javascript"
	src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<script type="text/javascript" src="../JS/UI.js"></script>

<script src="../JS/jquery.validationEngine-de.js" type="text/javascript"
	charset="utf-8"></script>
<script src="../JS/jquery.validationEngine.js" type="text/javascript"
	charset="utf-8"></script>

<link rel="stylesheet" href="../CSS/validationEngine.jquery.css"
	type="text/css" />

<c:if test="${empty sessionScope.id}">
	<c:redirect url="../index.jsp?error=3" />
</c:if>

<c:if test="${param['ean'] == 1}">
	<c:set var="thema" scope="request" value="Lebensmittel nicht vorhanden" />
	<c:set var="nachricht" scope="request"
		value="Folgendes Lebensmittel ist nicht in ihrer Datenbank vorhanden:" />
</c:if>

</head>
<body>

	<div id="aussenwrapper">

		<div id="innenwrapper">

			<!-- HEADER -->
			<div id="header">
				<div id="logo">
					<img src="../Image/Final.png" height="150" />


				</div>
				<div id="menu">
					<div class="inhalt">
						<ul>
							<li><a href="startseite.jsp">Home</a></li>
							<li><a href="Eingabe/ean_eingabe_ajax.jsp">Eingabe</a></li>
							<li><a href="konto.jsp">Mein Konto</a></li>
						</ul>
					</div>
				</div>
				<jsp:include page="statusbox.jsp"></jsp:include>
			</div>



			<!--  Content-Bereich -->
			<div id="content">
				<form action="../Beans/kontakt_bean.jsp" method="post" id="kontakt">
					<script>
						$(document).ready(function() {
							$("#kontakt").validationEngine();
						});
					</script>

					<div>
						<h1>Möchten Sie mit uns Kontakt aufnehmen?</h1>
						<table>
							<tr>
								<td><label for="name">Thema:</label></td>
								<td><input class="validate[required, custom[onlyLetterSp]]"
									type="text" name="thema"
									value="<c:out value="${requestScope.thema}" />" /></td>
							</tr>

							<tr>
								<td><label for="name">Nachricht:</label></td>
								<td><textarea class="validate[required]" name="nachricht"
										cols="50" rows="10"><c:out
											value="${requestScope.nachricht}" /> </textarea></td>
							</tr>

							<tr>
								<td>
									<div id="buttonfieldset">
										<input type="submit" id="button" class="button"
											value="Abschicken">
									</div>
								</td>
								<td></td>
							</tr>
						</table>
					</div>
				</form>
			</div>
			<!--Ende content-->

			<span style="clear: both;"></span>

		</div>
		<!--Ende innenwrapper-->

		<jsp:include page="footernavi.jsp"></jsp:include>
		<!--Ende footer-->

	</div>
	<!--Ende aussenwrapper-->
</body>
</html>